package com.learn.redis.test;

import org.junit.Test;
import redis.clients.jedis.Jedis;

/**
 * @author DYZ
 * @date 2021/8/25
 */
public class RedisTestPing {

    @Test
    public void ping() {
        Jedis jedis = new Jedis("192.168.2.23", 6379);
        String pong = jedis.ping();
        System.out.println("连接成功：" + pong);
        jedis.close();
    }

}
